<include file="Public/newset-header" title="    " />
<link rel="stylesheet" href="__STATIC__/css/add.css">
<link rel="stylesheet" href="__STATIC__/css/cropper.min.css">
<link rel="stylesheet" href="__STATIC__/css/sitelogo.css">
<style type="text/css">
    .avatar-btns button {
        height: 35px;
    }
</style>
<div class="hint-copy">
    <p><i class="fa fa-warning"></i>密码输入不正确,请重新输入!</p>
</div>

<div class="container" style="padding-bottom:40px;">
    <ul class="breadcrumb">
        <li><a href="{:U('Index/index')}">首页</a></li>
        <li class="active">基本信息</li>

    </ul>
    <div class="row">
        <include file="Public/newset-sidebar" title="侧边栏" />
        <div class="col-md-9">
            <div class="headline">
                <h1>修改密码</h1>
            </div>
            <form method="post" action="{:U('member/changepwd')}">
                <div class="message">
                    <div class="messages-inner">
                        <section>
                            <label>旧密码 <span>*</span></label>
                            <label class="text-input">
                                <input class="form-control" type="password" name="oldpassword" placeholder="旧密码">
                                <i class="fa fa-key"></i>
                            </label>
                        </section>
                        <section>
                            <label>新密码 <span>*</span></label>
                            <label class="text-input">
                                <input class="form-control new-password" type="password" name="newpassword" placeholder="新密码">
                                <i class="fa fa-key"></i>
                            </label>
                        </section>
                        <section>
                            <label>确认密码<span>*</span></label>
                            <label class="text-input">
                                <input class="form-control confirm-password" type="password" name="newrepassword" placeholder="确认新密码">
                                <i class="fa fa-key"></i>
                            </label>
                        </section>
                    </div>
                    <hr>
                    <div class="message-footer">
                        <input type="hidden" name="id" value="{$model.id}">
                        <button class="btn btn-success" type="submit" >确认修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</div>
<include file="Public/newset-footer" />
<script src="__STATIC__/js/cropper.js"></script>
<script src="__STATIC__/js/sitelogo.js"></script>
<script src="__STATIC__/js/html2canvas.min.js"></script>
<script type="text/javascript">
    $(function(){
        //新密码与确认密码
        $(".confirm-password").focusout(function(){
            console.log("我已经进来了")
            var NewPassword=$(".new-password").val();
            var ConfirmPassword=$(".confirm-password").val();
            if(ConfirmPassword != null && ConfirmPassword != ''){
                if(NewPassword===ConfirmPassword){
                    console.log("两次相等")
                }else{
                    $(".hint-copy").fadeIn().delay(2000).fadeOut();
                }
            }
        })
    })
</script>

